package com.student.manage.service;

import com.student.manage.entity.User;
import com.student.manage.entity.model.LoginResult;
import com.student.manage.entity.model.RegisterResult;
import com.student.manage.entity.model.UpdateResult;
import com.student.manage.entity.model.UserTokenInfo;
import com.student.manage.entity.vo.UserLoginVo;
import com.student.manage.entity.vo.UserRegisterVo;

import java.util.List;

public interface IUserService {
    RegisterResult register(UserRegisterVo userRegisterVo);

    LoginResult login(UserLoginVo userLoginVo);

    List<User> list();

    UserTokenInfo getUserTokenInfo(String loginToken);

    User getById(Integer id);

    UpdateResult updateByIdSelective(User user);

    int deleteById(Integer id);
}
